Skip to content

Add more details on the proposal.#6

Open
brendandahl wants to merge 2 commits into
mainfrom
phase2-details
Open

Add more details on the proposal.#6
brendandahl wants to merge 2 commits into
mainfrom
phase2-details

Conversation

@brendandahl

Copy link
Copy Markdown
Collaborator

No description provided.

@rossberg rossberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the editorial tweaks/corrections below, I would suggest two changes to the binary format:

  • Bit 6 and 4 are closely related, in that they control the target for the operation. Can we move them together, i.e., use bit 5 instead of 4? Then we can more easily read them as a single two-bit value and extend its interpretation in the future (e.g., by using the combination 11 for another form of target, such as first-class memories).
  • Memory index and type index are mutually exclusive, have the same format, and take similar roles. It would make sense to put them in the same position in the binary format. That would also simplify decoding (you parse an index unless both bits 4 and 6 are zero).

Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
Comment thread proposals/multibyte-array-access/Overview.md Outdated
@brendandahl

Copy link
Copy Markdown
Collaborator Author

Thanks for the review!

In addition to the editorial tweaks/corrections below, I would suggest two changes to the binary format:

  • Bit 6 and 4 are closely related, in that they control the target for the operation. Can we move them together, i.e., use bit 5 instead of 4? Then we can more easily read them as a single two-bit value and extend its interpretation in the future (e.g., by using the combination 11 for another form of target, such as first-class memories).

Bit 5 is currently used in the relaxed atomics proposal. We could potentially swap with them if you feel strongly about this.

@rossberg

Copy link
Copy Markdown
Member

Yeah, given that both proposals are in early stages, I assume it's not a big deal to switch the bits. I think it would be worthwhile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants